package com.win.service.impl;

import com.win.service.Persons;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

// 当激活 prod 或默认环境时，创建 Boss Bean
@Profile(value = {"prod", "default"})
@Component
@ConfigurationProperties("person")
@Data
public class Boss implements Persons {
    private String name;
    private Integer age;
}